dictionary Property |
String that refers to the url of the dictionary XML file that is used by the component for translation.
Syntax
HTML |
<div cordysType="wcp.library.util.Translator" id="listID" dictionary=surl> <div> </div> </div> |
Scripting |
translator.dictionary = surl; |
Parameters
Parameter |
Description |
---|---|
surl |
Required. String that refers to the url of the dictionary XML File that is used by the component. |
Remarks
The dictionary file is of type.translationand contains various HTML tags that are used in the page and their language equivalents. The language mapping in the dictionary file is done based on ISO codes. So when a language is set at run time, it should be set to the corresponding ISO code only. This file, also calledpage dictionary, will look like the following sample.
<xml> <dictionary> <label label_id="Hello !"> <nl>Hallo !</nl> <fr>Bonjour !<fr> </label> <label label_id="label2"> <en><font color= 'red'><b>Stop</b></en> <nl><font color= 'green'><b>Stoppen</b></nl> <fr><font color= 'yellow'><b>Halte</b></fr> <label> </dictionary> </xml>